/**
 * Http status 400
 */
export class BadRequestError extends Error {
  /**
   *
   * @param message 错误消息
   */
  constructor(message?: string) {
    super(`BadRequest ${message}`);
  }
}
/**
 * Http status 403
 */
export class UnauthorizedError extends Error {
  /**
   *
   * @param message 错误消息
   */
  constructor(message: string = '') {
    super(`Unauthorized ${message}`);
  }
}
/**
 * Http status 404
 */
export class NotFoundError extends Error {
  /**
   *
   * @param message 错误消息
   */
  constructor(message: string = '') {
    super(`NotFound ${message}`);
  }
}
/**
 * Http status 500
 */
export class ProblemError extends Error {
  /**
   *
   * @param message 错误消息
   */
  constructor(message: string = '') {
    super(`Problem ${message}`);
  }
}
/**
 * Http status 500
 */
export class ConflictError extends Error {
  /**
   *
   * @param message 错误消息
   */
  constructor(message: string = '') {
    super(`Conflict ${message}`);
  }
}
